package cn.tool.dao.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 胖树
 * @since 2022-10-08
 */
@TableName("area_info")
public class AreaInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 本级名称
     */
    private String areaName;

    /**
     * 本级代码
     */
    private String areaCode;

    /**
     * 父级名称
     */
    private String fatherAreaCode;

    /**
     * 父级代码
     */
    private String fatherAreaName;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }
    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }
    public String getFatherAreaCode() {
        return fatherAreaCode;
    }

    public void setFatherAreaCode(String fatherAreaCode) {
        this.fatherAreaCode = fatherAreaCode;
    }
    public String getFatherAreaName() {
        return fatherAreaName;
    }

    public void setFatherAreaName(String fatherAreaName) {
        this.fatherAreaName = fatherAreaName;
    }

    @Override
    public String toString() {
        return "AreaInfo{" +
            "id=" + id +
            ", areaName=" + areaName +
            ", areaCode=" + areaCode +
            ", fatherAreaCode=" + fatherAreaCode +
            ", fatherAreaName=" + fatherAreaName +
        "}";
    }
}
